CANoe Platform

TPT supports testing CANoe simulation setups. For that purpose, TPT integrates the TPT-VM into the CANoe simulation. The TPT-VM is responsible for the execution of tests and can stimulate and observe CANoe bus signals and system variables during the execution.

TPT stimulation and observation focuses on CANoe bus signal and CANoe system variable interaction. Using dedicated system variables, TPT can also trigger CAPL scripts to perform specific CANoe operations and functions.

Binding setup

The binding setup is the first step you have to make to connect CANoe with TPT. In order to instrument a CANoe configuration with TPT, open the configuration file. Select "Configuration|Options" in CANoe (or "File|Options" in CANoe 9 or later) and add the TPT-CANoe binding DLL in the "C Libraries" tab.

This TPT-CANoe binding DLL is located in your TPT installation folder, under <TPTINSTALLDIR>\tptplugins\canoe\lip\tpt_canoe_binding.dll.

Configuration of tpt_canoe_binding.dll

After adding the DLL in the "C Libraries" tab, you can execute the simulation. The tpt_canoe_binding.dll will report that there is no test case yet.

Log message

Specify the connection with the CANoe system variable TPT::Active

You can initialize, pause or stop the connection between CANoe and TPT. This is done in the "TPT_Active" panel in CANoe after starting the simulation.

TPT_Active panel in CANoe

There are three values you can enter:

TPT::Active = 1

The TPT-VM starts in CANoe with an active test case. It is also possible to run the TPT dashboard with CANoe. Do not set the variable to this value if the variables TPT::__::* are not initialized properly (usually these variables are initialized by TPT automatically).

TPT::Active = 0

The simulation is not running or has been stopped. If a simulation is running with TPT (TPT::Active = 1), you can change the value to zero to stop connection. CANoe continues the simulation. TPT can reconnect to an running simulation.

TPT::Active = -1

Turn off the connection completely.

To run test cases on CANoe with the TPT dashboard, start the simulation in CANoe, select the Dashboard perspective in TPT, then go to the TPT Execution Configuration, select the Dashboard checkbox and run the test.